/**************************************************************
 * HTTPPrint.h
 * Provides callback headers and resolution for user's custom
 * HTTP Application.
 * 
 * This file is automatically generated by the MPFS Utility
 * ALL MODIFICATIONS WILL BE OVERWRITTEN BY THE MPFS GENERATOR
 **************************************************************/

#ifndef __HTTPPRINT_H
#define __HTTPPRINT_H

#include "TCPIP Stack/TCPIP.h"

#if defined(STACK_USE_HTTP2_SERVER)

extern HTTP_CONN curHTTP;
extern HTTP_STUB httpStubs[MAX_HTTP_CONNECTIONS];
extern BYTE curHTTPID;

void HTTPPrint(DWORD callbackID);
void HTTPPrint_clock(void);
void HTTPPrint_ajax(void);
void HTTPPrint_timer1(void);
void HTTPPrint_timer2(void);
void HTTPPrint_mail(void);
void HTTPPrint_hb(void);
void HTTPPrint_io_ajax(void);
void HTTPPrint_io(void);
void HTTPPrint_ka(void);
void HTTPPrint_ka1(void);
void HTTPPrint_log(void);
void HTTPPrint_config(void);
void HTTPPrint_net_par(void);
void HTTPPrint_pm(void);
void HTTPPrint_pm1(void);
void HTTPPrint_pm2(void);
void HTTPPrint_sensor(void);
void HTTPPrint_start(void);
void HTTPPrint_strg(void);
void HTTPPrint_sv(void);
void HTTPPrint_sv1(void);
void HTTPPrint_user(void);
void HTTPPrint_u_res(void);
void HTTPPrint_wol(void);
void HTTPPrint_log_rd(void);
void HTTPPrint_log_lang(void);
void HTTPPrint_usse(void);
void HTTPPrint_rtc(void);

void HTTPPrint(DWORD callbackID)
{
	switch(callbackID)
	{
        case 0x00000000:
			HTTPPrint_clock();
			break;
        case 0x00000001:
			HTTPPrint_ajax();
			break;
        case 0x00000002:
			HTTPPrint_timer1();
			break;
        case 0x00000003:
			HTTPPrint_timer2();
			break;
        case 0x00000004:
			HTTPPrint_mail();
			break;
        case 0x00000005:
			HTTPPrint_hb();
			break;
        case 0x00000006:
			HTTPPrint_io_ajax();
			break;
        case 0x00000007:
			HTTPPrint_io();
			break;
        case 0x00000008:
			HTTPPrint_ka();
			break;
        case 0x00000009:
			HTTPPrint_ka1();
			break;
        case 0x0000000a:
			HTTPPrint_log();
			break;
        case 0x0000000b:
			HTTPPrint_config();
			break;
        case 0x0000000c:
			HTTPPrint_net_par();
			break;
        case 0x0000000d:
			HTTPPrint_pm();
			break;
        case 0x0000000e:
			HTTPPrint_pm1();
			break;
        case 0x0000000f:
			HTTPPrint_pm2();
			break;
        case 0x00000010:
			HTTPPrint_sensor();
			break;
        case 0x00000011:
			HTTPPrint_start();
			break;
        case 0x00000012:
			HTTPPrint_strg();
			break;
        case 0x00000013:
			HTTPPrint_sv();
			break;
        case 0x00000014:
			HTTPPrint_sv1();
			break;
        case 0x00000015:
			HTTPPrint_user();
			break;
        case 0x00000016:
			HTTPPrint_u_res();
			break;
        case 0x00000017:
			HTTPPrint_wol();
			break;
        case 0x00000018:
			HTTPPrint_log_rd();
			break;
        case 0x0000001b:
			HTTPPrint_log_lang();
			break;
        case 0x0000001c:
			HTTPPrint_usse();
			break;
        case 0x0000001d:
			HTTPPrint_rtc();
			break;
		default:
			// Output notification for undefined values
			TCPPutROMArray(sktHTTP, (ROM BYTE*)"!DEF", 4);
	}

	return;
}

void HTTPPrint_(void)
{
	TCPPut(sktHTTP, '~');
	return;
}

#endif

#endif
